package com.example.apigateway.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/env")
@RefreshScope
public class EvnController {

    @Value("${env}")
    private String evn;

    @RequestMapping("/print")
    public String print(){
        return evn;
    }
}
